<?php /* Smarty version 2.6.26, created on 2012-10-07 03:28:11
         compiled from C:/wamp/www/guofeng/admin/tpl/user/adduser.html */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta charset="utf-8">
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <style>
	#condition{
		font-size:20px;
		color:#000;
	}
	p{
		font-size:30px;
		color:blue;
	}
  </style>
 <script src="/guofeng/data/js/jquery-1.7.2.min.js"></script>
  <script>
	$(function(){
		$("form").submit(function(){
					var_dump($data);
			var data=$(this).serialize();
			$.ajax({
				url:"http://localhost/guofeng/login.php?a=admin&c=user&m=	adduser",
				data:data,
				type:"post",
				datatype:"json",
				success:function(data){
					if(data['state']=1){
						alert("添加失败");
					}else{
						alert("添加失败");
					}
				}
			})
			return false;
		})
	})
  </script>
 </head>

 <body>
  <div>
            <div id="condition">当前位置：<a href="http://localhost/guofeng/login.php?a=admin&m=admin">后台管理</a>->用户管理->添加用户
			</div>
            <p>添加新用户:</p>
            <form id="addUser" action="http://localhost/guofeng/login.php?a=admin&c=user&m=	adduser" method="post">
                <table width="450" border="0" id="addUserTable"> 
                           <tr><td>用户名</td><td><input type="text" name="username" id="username"></td></tr>
                           <tr><td>密码</td><td><input type="password" name="password" id="password"></td></tr>
                           <tr><td>性别</td><td>男<input type="radio" name="sex" value="man" id="sex" checked>女<input type="radio" name="sex" value="woman" id="sex"></td></tr>
						    <tr><td>年龄</td><td><input type="text" name="age" id="age"></td></tr>
                           <tr><td colspan="2"><input type="submit" value="添加用户" class="sub"></td></tr>
                       </table>    
            </form> 
        </div>
 </body>
</html>